package com.javaeedev.junit;

import javax.ejb.CreateException;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;

/**
 * CMP
 */
public abstract class CustomerBean implements EntityBean {

    public abstract String getCustomerID();
    public abstract void setCustomerID(String id);

    public abstract String getName();
    public abstract void setName(String name);

    public abstract String getAddress();
    public abstract void setAddress(String address);

    public String ejbCreate(String customerId, String name, String address) throws CreateException {
        setCustomerID(customerId);
        setName(name);
        setAddress(address);
        return customerId;
    }

    public void ejbPostCreate(String customerId, String name, String address) throws CreateException {}

    public void setEntityContext(EntityContext context) {}

    public void unsetEntityContext() {}

    public void ejbRemove() {}

    public void ejbLoad() {}

    public void ejbStore() {}

    public void ejbPassivate() {}

    public void ejbActivate() {}
}
